package com.it.service;

import com.github.pagehelper.PageInfo;
import com.it.bean.Quartz;
import com.it.page.PageQuery;
import org.quartz.SchedulerException;

import java.util.List;

/**
 * @author TBH
 * @date 2025-05-19 15:34:16
 * @desc
 */
public interface QuartzService {

    void saveAndScheduleJob(Quartz quartzJob);

    void editAndScheduleJob(Quartz quartzJob) throws SchedulerException;

    void deleteAndStopJob(Long id);
    void resumeJob(Long id);

    void execute(Long id) throws Exception;

    void pause(Long  id) throws SchedulerException;

    List<Quartz> findAllStart();

    PageInfo<Quartz> page(PageQuery<Quartz> pageQuery);

    void save(Quartz quartz) throws SchedulerException;

    void delete(Long id);

    void resume(Long id);
}
